package com.nw.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.lang.annotation.Target;
import java.util.Date;
import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Data
@Table(name = "nw_order")
public class Order {

  private String orderId;

  private String orderUsername;
  /*设置响应json日期类型格式*/
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Date orderTime;

  private Double orderTotalPrice;

  private String orderStatus;

  private String parentId;

  private String orderItemId;

  private String orderItemName;

  private String orderItemPic;

  private Integer orderItemNumber;

  private Double orderItemTotalPrice;

  private String addressName;

  private String addressPost;

  private String addressReceiver;
  //List<OrderItem> orderItemList;


  private String commentPermissionId;
  private String commentTimeRemain;
}
